<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

/*------------------- HOME CONTROLLER ----------------*/
//$route['default_controller'] = "home_controller/index";
$route['default_controller'] = "home_controller";
$route['home/get-table'] = "home_controller/get_table";
$route['home/add-product'] = "home_controller/add_product_to_table";
$route['home/search-product'] = "home_controller/search_product";
$route['home/reload-store'] = "home_controller/get_all_store";
$route['home/clear-all'] = "home_controller/clear_all";
$route['home/increase'] = "home_controller/increase_quantity";
$route['home/decrease'] = "home_controller/decrease_quantity";
$route['home/reload-table-list'] = "home_controller/reload_table_list";
$route['home/add-order'] = "home_controller/add_order";
$route['home/print/(:num)'] = "home_controller/window_print/$1";
$route['en'] = "home_controller";

//$route['email/free'] = "home_controller/free_register";
//$route['email/standing'] = "home_controller/standing_register";
//$route['email/sitting'] = "home_controller/sitting_register";
//$route['email/limousine'] = "home_controller/limousine_register";
$route['email/yatch'] = "home_controller/yatch_register";

/*------------------- ADMIN ----------------------*/
$route['login'] = "admin/login_controller";
$route['login/check-login'] = "admin/login_controller/check_login";
//$route['ci-admin'] = 'admin/login_controller';

//$route['ci-admin/file-manager'] = 'admin/manage_controller';
//$route['ci-admin/upload-image'] = 'admin/manage_controller';
//$route['ci-admin/upload-video'] = 'admin/manage_controller';



$route['ci-admin/(:any)/(:any)/(:num)/(:num)'] = "admin/$1/$2/$3/$4";
$route['ci-admin/(:any)/(:any)/(:num)'] = "admin/$1/$2/$3";
$route['ci-admin/(:any)/(:num)'] = "admin/$1/index/$2";
$route['ci-admin/(:any)/(:any)'] = "admin/$1/$2";
$route['ci-admin/(:any)'] = "admin/$1";
$route['ci-admin'] = "admin/login_controller";


/*--------------------LOG-IN----------------------------*/
$route['loginuser']="login_controller/index";



/* End of file routes.php */
/* End of file routes.php */
/* Location: ./application/config/routes.php */